import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/xbcwarehouse/`

// 仓库管理
export const getWarehouse = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params }, config)
}
export const getXbcWarehouseListPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'getpage', params, config)
}
export const addWarehouse = (params, config = {}) => {
  return request.post(apiPrefix + 'add', params, config)
}
export const editXbcWarehouse = (params, config = {}) => {
  return request.put(apiPrefix + 'update', params, config)
}
export const removeXbcWarehouse = (params, config = {}) => {
  return request.delete(apiPrefix + 'softdelete', { params: params }, config)
}
export const batchRemoveXbcWarehouse = (params, config = {}) => {
  return request.put(apiPrefix + 'batchsoftDelete', params, config)
}
export const getxbcWarehouseList = (params, config = {}) => {
  return request.get(apiPrefix + 'getwarehouselist', { params: params }, config)
}
